package com.lyj.mode.principle.liskov;

/**
 * 计算器类
 * @author:liyajie
 * @createTime:2022/1/31 15:25
 * @version:1.0
 */
public class Calculator {
    //定义加法功能
    public int add(int a,int b){
        return a + b;
    }
    //定义减法功能
    public int sub(int a,int b){
        return a - b;
    }
}
